<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;  charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>游戏秀-抓取用户的粉丝</title>
<link href="/admin/style/user/admin.css" type="text/css" rel="stylesheet" media="screen" />
<script type="text/javascript" src="http://www.sinaimg.cn/cj/dfz/js/base_v_0.1.js" charset="utf-8"></script> 
<style type="text/css">
.rstrt_span{display:inline-block;border:1px solid #ccc;background:#eee;padding:0 15px;line-height:28px;font-size:14px}

.down {background:url(/admin/images/sort_dn.gif) no-repeat right 0;padding-right:18px;}
.up {background:url(/admin/images/sort_up.gif) no-repeat right 0;padding-right:18px;}
.kw{background:#ddd;color:#999;}
</style>
</head>
<body>
	<div class="sec-title">
		<h3 class="title"><a href="#">游戏秀</a><i>&gt;</i>抓取用户的粉丝</h3>
	</div>
	<div style="margin:10px;">
		<span class="rstrt_span" {%if $g_show.status eq '1'%}style="color:red; font-weight:bold"{%/if%}><a href="?status=1">正常</a></span>
		<span class="rstrt_span" {%if $g_show.status eq '0'%}style="color:red; font-weight:bold"{%/if%}><a href="?status=0">删除</a></span>
			<span class="rstrt_span"><a href="user_fans_for_search_edit.php">新建</a></span>
		
	</div>
	
	<div style="margin:10px;">
		
	</div>
	<div style="margin:10px;">
		
	</div>
	
	<div class="w10">
	<table class="table-list">
		<tr>
		<th>uid</th>
		<th>话题</th>
		<th width=10%>操作</th></tr>
		{%section name=count loop=$g_show.list%}
		<tr class="cur" id="list_tr_{%$g_show.list[count].id%}">
		<td>
		<a href="http://weibo.com/{%$g_show.list[count].uid%}" target="_blank">{%$g_show.list[count].uid%}</a>
		</td>
		
		<td>
		{%$g_show.list[count].topic%}
		</td>

		<td>

		

		
		{%if $g_show.list[count].status eq 1%}
		<a href="user_fans_for_search_edit.php?id={%$g_show.list[count].id%}">编辑</a>
		<a href="javascript:void(0);" onclick=del_one({%$g_show.list[count].id%});>删除</a>
		{%else%}
		<a href="javascript:void(0);" onclick=undel_one({%$g_show.list[count].id%});>恢复</a>
		{%/if%}
		
		
		</td>

		</tr>
		{%sectionelse%}
		<tr><td colspan="8">
		目前列表中没有内容
		</td></tr>
		{%/section%}
	</table>
	</div>
	<div style="margin:10px;">
		
		<div style="display:inline;">
			{%$g_show.page_bar%}
		</div>
	</div>
	


	<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
<script>


function del_one(id)
{
	if(!id)
	{
		alert("没选择？！");
		return false;
	}
	$.post('user_fans_for_search_edit_post.php?type=del&id='+id, '', function(data){
		if (data.error == 1)
		{
			alert(data.errmsg);
		}
		else
		{
			
			alert("操作成功。");
			window.location.reload();
		}
	}, 'json');
}


function undel_one(id)
{
	if(!id)
	{
		alert("没选择？！");
		return false;
	}
	$.post('user_fans_for_search_edit_post.php?type=undel&id='+id, '', function(data){
		if (data.error == 1)
		{
			alert(data.errmsg);
		}
		else
		{
			alert("操作成功。");
			window.location.reload();
		}
	}, 'json');
}



</script>
</html>
